const Service = require('egg').Service;

class getDocument extends Service {
    async createdata() {
        const result = await this.ctx.model.Article.create({
                wid: "nihao",
                release: false,
                sort: 3,
                img: "13256.jpg",
                abstract: "top",
                text: "4565462112uygtfg",

            }).then(res => {
            return { success: true, msg: res, code: 0 };
            }).catch(err => {
                return { success: false, err };
            });
        return result
    }
}

module.exports = getDocument;